package cn.kgc.springmvc.day01.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 课工场
 * @date 2024/7/18
 * @description
 */
@WebServlet("/teacher")
public class TeacherServlet extends BaseServlet {

    // 添加用户
    protected void addTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("----------addTeacher-------------");
    }

    // 更新用户
    protected void updateTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("----------updateTeacher-------------");
    }

    // 删除用户
    protected void deleteTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("----------deleteTeacher-------------");
    }

    // 用户列表
    protected void teacherList(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("----------teacherList-------------");
    }
}
